import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.*;

import java.io.File;
import java.io.IOException;

/**
 * Created by zhoum on 2016/8/2.
 */
public class test {
    public static void main(String[] args) throws IOException, InvalidFormatException {
        Workbook wb = WorkbookFactory.create(new File("E://test.xlsx"));
        Sheet sheet = wb.getSheetAt(1);
        Row row = sheet.getRow(0);
        for(Cell cell : row){
            System.out.println(cell.toString());
        }
//        Cell cell = row.getCell(0);
//        System.out.println(cell.getStringCellValue());
    }
}
